package cn.swu.ws.fileUpload;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
@WebServlet("/idUpdate")
public class idUpdate extends HttpServlet {
    protected static String img_id = "";
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        img_id = req.getParameter("id");
        System.out.println(img_id);;
        String template = "{\n" +
                "\t\"state\": 200,\n" +
                "\t\"update\": true,\n" +
                "\t\"login_state\": \" true\",\n" +
                "\t\"data\": null\n" +
                "}";
        resp.getWriter().println(template);
    }
}
